package service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import domain.Wgroup;
import domain.example.WgroupExample;
import mapper.WgroupMapper;
import service.IGroupService;

@Service("GroupService")
public class GroupServiceImpl implements IGroupService {
	@Resource
	private WgroupMapper groupMapper;
	
	@Override
	public int countByExample(WgroupExample example) {
		return groupMapper.countByExample(example);
	}

	@Override
	public int deleteByExample(WgroupExample example) {
		return groupMapper.deleteByExample(example);
	}

	@Override
	public int deleteByPrimaryKey(Integer groupId) {
		return groupMapper.deleteByPrimaryKey(groupId);
	}

	@Override
	public int insert(Wgroup record) {
		return groupMapper.insert(record);
	}

	@Override
	public int insertSelective(Wgroup record) {
		return groupMapper.insertSelective(record);
	}

	@Override
	public List<Wgroup> selectByExample(WgroupExample example) {
		return groupMapper.selectByExample(example);
	}

	@Override
	public Wgroup selectByPrimaryKey(Integer groupId) {
		return groupMapper.selectByPrimaryKey(groupId);
	}

	@Override
	public int updateByExampleSelective(Wgroup record, WgroupExample example) {
		return groupMapper.updateByExampleSelective(record, example);
	}

	@Override
	public int updateByExample(Wgroup record, WgroupExample example) {
		return groupMapper.updateByExample(record, example);
	}

	@Override
	public int updateByPrimaryKeySelective(Wgroup record) {
		return groupMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Wgroup record) {
		return groupMapper.updateByPrimaryKey(record);
	}

}
